#ifndef _EEPROM_H
#define _EEPROM_H
#include "Global.h"


typedef struct
{
	unsigned char bit0:1;
	unsigned char bit1:1;
	unsigned char bit2:1;
	unsigned char bit3:1;
	unsigned char bit4:1;
	unsigned char bit5:1;
	unsigned char bit6:1;
	unsigned char bit7:1;
}iar_bits;
DEFINE_SFR(iar_bits, iar1, 0x02);
#define	 	iar1_0	                    iar1.bit0
#define		iar1_1	                    iar1.bit1
#define		iar1_2	                    iar1.bit2
#define		iar1_3	                    iar1.bit3
#define		iar1_4	                    iar1.bit4
#define		iar1_5	                    iar1.bit5
#define		iar1_6	                    iar1.bit6
#define		iar1_7	                    iar1.bit7


void PR_EEPROM_WR(unsigned char GU8V_EEPROM_ADDR,unsigned char GU8V_WR_DATA);
unsigned char PR_EEPROM_RD(unsigned char GU8V_EEPROM_ADDR);

#endif